﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_WORKCENTERS_ASSETS
// * CreateDate    : 2013-02-19 16:52:15
// * Creater       : CodeSmith
// * LastChangeDate: 2013-02-19 16:52:15
// * LastChanger   : 2013-02-19 16:52:15
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdWorkcentersAssetsTable : TableInfo
    {
        public const string C_TableName = "PROD_WORKCENTERS_ASSETS";

        public const string C_WORKCENTERS_CODE = "WORKCENTERS_CODE";
        public const string C_ASSET_ID = "ASSET_ID";
        public const string C_ASSET_NAME = "ASSET_NAME";
        public const string C_ASSET_CODE = "ASSET_CODE";

        public ProdWorkcentersAssetsTable()
        {
            _tableName = "PROD_WORKCENTERS_ASSETS";
        }

        protected static ProdWorkcentersAssetsTable _current;
        public static ProdWorkcentersAssetsTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdWorkcentersAssetsTable();

            _current.Add(C_WORKCENTERS_CODE, new ColumnInfo(C_WORKCENTERS_CODE, "WorkcentersCode", false, typeof(string)));
            _current.Add(C_ASSET_ID, new ColumnInfo(C_ASSET_ID, "AssetId", false, typeof(string)));
            _current.Add(C_ASSET_NAME, new ColumnInfo(C_ASSET_NAME, "AssetName", false, typeof(string)));
            _current.Add(C_ASSET_CODE, new ColumnInfo(C_ASSET_CODE, "AssetCode", false, typeof(string)));

        }

        public ColumnInfo WORKCENTERS_CODE
        {
            get { return this[C_WORKCENTERS_CODE]; }
        }

        public ColumnInfo ASSET_ID
        {
            get { return this[C_ASSET_ID]; }
        }

        public ColumnInfo ASSET_NAME
        {
            get { return this[C_ASSET_NAME]; }
        }

        public ColumnInfo ASSET_CODE
        {
            get { return this[C_ASSET_CODE]; }
        }



    }
}

